import requests

base_url = "http://crawler-movie.skysrt.com/sync-third/videointroduce/startGatherByUid?uid={}"

payload={}
headers = {
   'User-Agent': 'Apifox/1.0.0 (https://apifox.com)'
}

# 定义 coocaaVId 列表
coocaa_vid_list = [
    "scewqrl81rx3pc",
    "scewqrl7cnxukg",
    "scewqrl7pafdhc",
    "scewqrl8drxji8",
    "scewqrl6dhvbb4",
    "scewqrl7ve6fwg",
    "scewqrl76u6dj4",
    "scewqrl70nxerk",
    "scewqrl7jbo3r4",
    "scewqrl5pcun0g",
    "scewqrl87y62gw",
    "scewqrl4puam0w",
    "scewqrl67e48w0",
    "scewqrl5dpboxs",
    "scewqrl4jy18n4",
    "scewqrl521sqv4",
    "scewqrl6uro1ds",
    "scewqrl5jll2bk",
    "scewqrl6jj4hds",
    "scewqrl61cv2tc",
    "scewqrl3k7zim8",
    "scewqrl6pae22o",
    "scewqrl4w0jksg",
    "scewqrl5831wxs",
    "scewqrl4e99kao"


]

# 依次调用接口
for coocaa_vid in coocaa_vid_list:
    url = base_url.format(coocaa_vid)
    try:
        response = requests.get(url, headers=headers)
        response.raise_for_status()  # 如果响应状态码不是 200，抛出异常
        print(f"Response for {coocaa_vid}: {response.text}")
    except requests.exceptions.RequestException as e:
        print(f"Error occurred for {coocaa_vid}: {e}")

